# @Time : 2021/9/13 21:18
# @Author : SunSea
# @Site : 
# @File : sogo_pso_sphere.py
import platgo as pg


problem = pg.problems.Ackley(30)
N = 100
maxgen = 100
# wight 值大有利于全局寻优，值小有利于局部寻优
Algorithm = pg.algorithms.PSO(maxgen=maxgen, problem=problem, weight=0.8)

pop = Algorithm.go(N)
print(pop)
